import type { App } from 'vue'
import util from './util'
import pinia from '../stores'
import errorHandle from './error'

uni.$util = util

export default {
	install: (app: App) => {
    app.use(pinia)
		app.config.globalProperties.$util = util
		app.config.errorHandler = errorHandle
	}
}